import Vue from 'vue'
import Vuex from 'vuex'
import Router from 'vue-router'
import Index from '@/views/system/Index'
import Login from '@/views/login/Login'

import HomePage from '@/views/HomePage'

Vue.use(Router)
Vue.use(Vuex)

export default new Router({
  routes: [
    {
      path: '/',
      redirect() {
        return '/login'
      }
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/homePage',
      name: 'HomePage',
      component: HomePage
    }]

})
